package com.aihna.mall.service;

import com.aihna.mall.domain.StoreUser;
import com.aihna.mall.domain.bo.UserOperateIntegralMoneyBo;
import com.aihna.mall.domain.bo.UserUpdateSpreadBo;
import com.aihna.mall.domain.vo.StoreUserVo;
import com.aihna.mall.domain.bo.StoreUserBo;
import com.aihna.common.mybatis.core.page.TableDataInfo;
import com.aihna.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 会员用户Service接口
 *
 * @author Joseph.Chen
 * @date 2024-04-14
 */
public interface IStoreUserService {

    /**
     * 查询会员用户
     */
    StoreUserVo queryById(Long id);

    /**
     * 查询会员用户列表
     */
    TableDataInfo<StoreUserVo> queryPageList(StoreUserBo bo, PageQuery pageQuery);

    /**
     * 查询会员用户列表
     */
    List<StoreUserVo> queryList(StoreUserBo bo);

    /**
     * 新增会员用户
     */
    Boolean insertByBo(StoreUserBo bo);

    /**
     * 修改会员用户
     */
    Boolean updateByBo(StoreUserBo bo);

    /**
     * 校验并批量删除会员用户信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean updateUserPhone(Integer id, String phone);

    Boolean updateIntegralMoney(UserOperateIntegralMoneyBo bo);

    Boolean updateSpread(UserUpdateSpreadBo bo);

    StoreUserVo selectUserByPhone(String phoneNumber);
}
